//
//  AppListViewController.h
//  LittleSugar
//
//  Created by zhang on 15-6-13.
//  Copyright (c) 2015年 张鑫. All rights reserved.
//

#import "BaseViewController.h"
#import "AFNetworking.h"

@interface AppListViewController : BaseViewController<UITableViewDataSource,UITableViewDelegate,UIScrollViewDelegate>
{
    UITableView *_tableView;
    NSMutableArray *_dataArr;
    
    //当前页
    NSInteger _currentPage;
    BOOL _isRefreshing;
    BOOL _isLoadMoring;
    
    AFHTTPRequestOperationManager *_manager;
}
@property (nonatomic,strong)UITableView *tableView;
@property (nonatomic,strong)NSMutableArray *dataArr;
@property (nonatomic)NSInteger currentPage;
@property (nonatomic,copy)NSString *update_time;
@property (nonatomic)BOOL isRefreshing;
@property (nonatomic)BOOL isLoadMoring;

@property (nonatomic,copy) NSString *requestUrl;
//第一次下载
- (void)firstDownload;
//增加下载任务
- (void)addTaskUrl:(NSString *)url isRefresh:(BOOL)isRefresh;

//刷新
- (void)creatRefreshView;
//结束刷新
- (void)endRefreshing;

- (void)leftClick:(UIButton *)button;
- (void)rightClick:(UIButton *)button;

@end
